// pages/paySuccess/paySuccess.js
const app = getApp()
Page({
  /**
   * 页面的初始数据
   */
  data: {
    statusBarHeight: app.globalData.statusBarHeight,
    totalFee:0
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    let totalFee = options.totalFee;
    if (totalFee != '' && totalFee != undefined) {
      this.setData({
        totalFee: totalFee
      })
    }
  },
  checkRecord() {
    wx.navigateTo({
      url: '../order/order?tabIndex=2',
    })
  },
  //跳转到首页
  toIndex(){
    wx.navigateTo({
      url: '../index/index',
    })
  }
})